<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<style type="text/css">
	/* .btn-edit-div{
		   
    bottom: 50px;
    position: relative;
	} */
</style>
<div th:fragment="detail-header">
	<div class="col-sm-12">
	    <div class="detail-page-header">
	    
	    <h2>泵站详情</h2>
	    	<div class="btn-group-xs" role="group">
				<!-- <a th:if="${newHouse.auditStatus == 0}" class="btn btn-success" onclick="audit(1)" shiro:hasPermission="biz:newHouse:audit">
					审核通过
				</a>
				<a th:if="${newHouse.auditStatus == 0}" class="btn btn-danger" onclick="audit(2)" shiro:hasPermission="biz:newHouse:audit">
					审核拒绝
				</a> -->
				<a class="btn btn-success btn-edit" th:onclick="'$.modal.openTab(\'编辑泵站\', \'/biz/pumpStation/edit/' + ${pumpStationInfo.id} + '\')'" shiro:hasPermission="biz:pumpStation:edit">
					<i class="fa fa-edit"></i> 编辑
				</a>
			</div>
		</div>
	    
	    	<!-- <h2>泵站详情</h2>
	    	 <div class="row">
		    	<div class="">
                    <div class="">
					<a class="btn btn-success btn-edit btn-edit-div"  style="float: right!important;position: relative!important;bottom: 50px;" th:onclick="'$.modal.openTab(\'编辑泵站\', \'/biz/pumpStation/edit/' + ${pumpStationInfo.id} + '\')'" shiro:hasPermission="biz:pumpStation:edit">
						<i class="fa fa-edit"></i> 编辑
					</a>
					</div>
				</div>
			</div> -->
			
			<input name="id" autocomplete="off"  class="form-control" type="hidden" maxlength="30" th:field="${pumpStationInfo.id}" readonly>
            
            <table class="table table-bordered">
	   		<tbody>
	   			<tr>
	   				<td class="tlabel" width="150">泵站id</td>
	   				<td width="35%" th:text="${pumpStationInfo.id}"></td>
	   				<td class="tlabel" width="150">泵站名称：</td>
	   				<td width="35%">
	   					<span th:text="${pumpStationInfo.pumpName}"></span>
	   				</td>
	   			</tr>
	   			<tr>
	   				<td class="tlabel">泵站地址：</td>
	   				<td>
	   					<span th:text="${pumpStationInfo.address}"></span>
	   				</td>
	   				<td class="tlabel">是否有效：</td>
	   				
	   				<!-- <td class="isValid"></td> -->
	   				
	   				<td th:if="${ pumpStationInfo.isValid == '1' }" class="color-green">
	   					有效
	   				</td>
	   				<td th:if="${ pumpStationInfo.isValid == '0' }" class="color-red">
	   					无效
	   				</td>
	   			</tr>
	   			<tr>
	   				<td class="tlabel">经度：</td>
	   				<td th:text="${pumpStationInfo.lng}"></td>
	   				<td class="tlabel">纬度：</td>
	   				<td th:text="${pumpStationInfo.lat}"></td>
	   			</tr>
	   			<tr>
	   				<td class="tlabel">近期供水：</td>
	   				<td th:text="${pumpStationInfo.recentSupplyCapacity}"></td>
	   				<td class="tlabel">远期供水：</td>
	   				<td th:text="${pumpStationInfo.forwardSupplyCapacity}"></td>
	   			</tr>
	   			<tr>
	   				<td class="tlabel">供水区域地图边界：</td>
	   				<td colspan="3" th:text="${pumpStationInfo.waterArea}"></td>
	   			</tr><tr>
	   				<td class="tlabel">备注</td>
	   				<td colspan="3" th:text="${pumpStationInfo.remark}"></td>
	   			</tr>
	   			
	   		</tbody>
		</table>
	</div>
	
	<!--<div class="col-sm-12">-->
   		<!--<ul class="nav nav-tabs">-->
			<!--<li th:class="${#strings.contains(#httpServletRequest.requestURL,'unit') ? 'active' : ''}">-->
				<!--<a th:href="@{'/biz/pumpStation/detail/unit/' + ${pumpStationInfo.id}}">供水单位管理 </a>-->
			<!--</li>-->
			<!--<li th:class="${#strings.contains(#httpServletRequest.requestURL,'stationUserRelation') ? 'active' : ''}">-->
				<!--<a th:href="@{'/biz/pumpStation/detail/stationUserRelation/' + ${pumpStationInfo.id}}">泵站管理者管理</a>-->
			<!--</li>-->
			<!--<li th:class="${#strings.contains(#httpServletRequest.requestURL,'element') ? 'active' : ''}">-->
				<!--<a th:href="@{'/biz/pumpStation/detail/element/' + ${pumpStationInfo.id}}">泵站组件管理</a>-->
			<!--</li>-->
			<!--<li th:class="${#strings.contains(#httpServletRequest.requestURL,'alerm') ? 'active' : ''}">-->
				<!--<a th:href="@{'/biz/pumpStation/detail/alerm/' + ${pumpStationInfo.id}}">泵站告警管理</a>-->
			<!--</li>-->
		<!--</ul>-->
   	<!--</div>-->
	
</div>

